package com.ruoyi.system.mapper.shopping;

import com.ruoyi.system.domain.shopping.Category;
import com.ruoyi.system.domain.shopping.Product;
import com.ruoyi.system.domain.shopping.dto.ProductVoDto;
import com.ruoyi.system.domain.shopping.vo.ProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper
public interface ProductMapper {
    List<ProductVo> selectProductVoList(Product product);

    List<Category> selectProductHostList();

    ProductVo selectProductVoById(Integer productId);

    ProductVo selectProductVo(Integer productId);

    List<ProductVo> selectProductList(Product product);

    int insert(Product product);

    int update(Product product);

    int deleteByIds(@Param("ids") Integer[] productId);

    Product selectProductById(Integer productId);
}
